﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace DynCMS.NET.Infrastructure.IOC.MVC
{
    internal class ControllerActivator : IControllerActivator
    {
        public virtual IController Create(System.Web.Routing.RequestContext requestContext, Type controllerType)
        {
            return Activator.CreateInstance(controllerType, requestContext) as IController;
        }
    }
}